﻿<%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" language="java" %>
<%
    request.setCharacterEncoding("UTF-8");
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+
        request.getServerPort()+request.getContextPath()+"/";
    String photo_input_url = basePath+"/pages/upload";
%>
<html>
<head>
    <base href="<%=basePath%>">
</head>
<body>
    <form action="<%=photo_input_url%>" method="post" enctype="multipart/form-data">
        输入消息：<input type="text" name="msg" id="msg" value="www.xiyue.cn"><br>
        上传图片：<input type="file" name="photo" id="photo"><br>
        <input type="submit" value="发送">
    </form>
</body>
</html>
